<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/hdocs/style/css/topic.css" type="text/css" rel="stylesheet" />
<link href="/hdocs/style/css/common.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/hdocs/jquery/js/jquery-1.8.2.js"></script>
<script type="text/javascript" src="/hdocs/style/js/common.js"></script>
<script type="text/javascript" src="/hdocs/style/js/topic.js"></script>
<title>主题单个文章页</title>
</head>
<body>
      #set ($menuIndex="topic") #parse("/inc/header.html")
      <div class="alonada">
      		<p class="aloneTit">
      			<a href="/topic/subjects.jsp">主题站</a> &gt; 
      			<a href="/topic/subject.jsp?subjectid=$!article.subjectid">$!article.subjectTitle</a> &gt; 
      			$!article.title
      		</p>
      </div>
      <div class="centent">
            <p class="h10"></p>
            <p class="h10"></p>
            <div class="sexTex">
                 <div class="sexBody">
                     <p class="titleXa">$!article.title</p>
                     <p class="titleXb">$!article.username 发表于 $!article.publishdate</p>
                     #if($!article.accountid==$!sessionLoginuser.accountid)
                     <p class="titleXb">
                     	<a href="javascript:updateArticleStatus($!article.id,-1);">删除</a><em>|</em>
	                    <a href="/topic/updateArticleInit.jsp?id=$!article.id">编辑</a>
                     </p>
                     #end
                     <p class="titleXc">$!article.introductionHTML</p>
                     #if($!article.imagename)
                     <p class="h10"></p>
                     <p class="h10"></p>
                     <p class="sexImg">
                          <img src="$!article.images[6]"/>
                     </p>
                     <p class="h10"></p>
                     <p class="h10"></p>
                     #end
                     <p class="titleXe">$!article.contentHTML</p>
                     #if($!article.labels)
                     <p class="titleXf">相关标签：
                     	#foreach( $label in $!article.labels)
                     	<a href="#">$label</a>
                     	#end
                     </p>
                     #end
                     <p class="titleXf">本文版权属于<a href="#">瓜朋网（Carepsy.com）</a>，转载请注明出处。商业使用请联系<a href="#">瓜朋网</a>。</p>
                     <p class="addHra"></p>
                     <p class="h10"></p>
                     <p class="h10"></p>
                     <p class="h10"></p>
                     <div class="injoy">
                     	  #parse("/inc/share.html")
                          <a href="#" class="injBtnb">推荐 1</a>
                     </div>
                     <p class="h10"></p>
                     <p class="h10"></p>
                     #if("$!sessionLoginuser.username"=="")
                     <div class="fbTexc">
                           <em class="fbTka"><img src="/upload/default_image_50x50.jpg"/></em>
                           <div class="fbTkvm">
                                 <div class="fbTkbl">
                                       <textarea name="" cols="" rows="" class="areaMyb"></textarea>
                                 </div>
                           </div>
                           <p class="notUser">发表评论需要 <a href="#">注册</a> 或 <a href="#">登录</a></p>
                           <a href="#" class="textBtv">发表评论</a>
                     </div>
                     #else
                     <div class="fbTexc">
                     	   <form id="addCommentForm" action="/topic/addComment.jsp" method="post">
                           <em class="fbTka"><img src="$!sessionLoginuser.images[3]"/></em>
                           <div class="fbTkvm">
                                 <div class="fbTkbl">
                                       <textarea id="articleComment" name="comment" class="areaMyb"></textarea>
                                 </div>
                           </div>
                           <input type="hidden" name="articleid" value="$!article.id"/>
                           <a href="javascript:submitComment();" class="textBtn">发表评论</a>
                           </form>
                     </div>
                     #end
                     <p class="h10"></p>
                     <p class="h10"></p>
                     <p class="lyNum">$!article.comments条评论 </p>
                     <p class="h10"></p>
                     #foreach( $comment in $articleComments)
                     <div class="speakCov">
                          <em><img src="$!comment.images[3]"/></em>
                          <div class="spTex">
                               <p class="spka">
                               		<a href="/user/index.jsp?accountid=$!comment.accountid" class="spkb">$!comment.username</a>
                               		<span class="spkc">发表于：$!comment.createdate</span></p>
                               <p class="h10"></p>
                               <p class="spkd">$!comment.comment</p>
                               <p class="spke">
                               		<!-- <a href="#" class="spkf">删除</a> -->
                               		<a href="javascript:addReply($!comment.id);" class="spkg">回复</a>
                               </p>
                               <div id="addReply$!comment.id" class="diplayNone">
                               		<form id="addReplyForm$!comment.id" action="/topic/addReply.jsp" method="post">
	                               		<div class="fbTkvn">
	                                         <div class="fbTkbq">
	                                              <textarea id="reply$!comment.id" name="reply" class="areaMyc"></textarea>
	                                         </div>
	                                    </div>
	                                    <input type="hidden" name="articleid" value="$!article.id"/>
	                                    <input type="hidden" name="commentid" value="$!comment.id"/>
	                                    <input type="hidden" name="reaccountid" value="$!comment.accountid"/>
	                                    <a href="javascript:submitReply($!comment.id);" class="textBtn">发表</a>
                               		</form>
                               </div>
                               <p class="h10"></p>
                               #foreach( $commentReply in $comment.replys)
                               	<div class="speakCol">
                                      <em><img src="$!commentReply.images[4]"/></em>
                                      <div class="spTexjk">
                                           <p class="spka"><a href="/user/index.jsp?accountid=$commentReply.accountid" class="spkb">
                                           		$!commentReply.username</a><span class="spkc">发表于：$!commentReply.modifydate</span></p>
                                           <p class="h10"></p>
                                           <p class="spkdg">$!commentReply.reply</p>
                                           <p class="spke">
                                           		<!-- <a href="#" class="spkf">删除</a> -->
                                           		<a href="javascript:addReply($!comment.id);" class="spkg">回复</a>
                                           </p>
                                      </div>
                                </div>
                               #end
                               <p class="h10"></p>
                     		   <p class="h10"></p>
                          </div>
                     </div>
                     #end
                     <p class="h10"></p>
                     <p class="h10"></p>
                     <p class="h10"></p>
                     <p class="h10"></p>
                     #set ($requestURL="/topic/article.jsp?id="+$!topicArticle.id)
                     #parse("/inc/pageControl.html")
                     <p class="h10"></p>
                     <p class="h10"></p>
                     <p class="h10"></p>
                     <p class="h10"></p>
                     <p class="h10"></p>
                 </div>
                 <div class="sexSide">
                       <p class="newFshx">作者信息</p>
                       <div class="laya">
                            <em class="yapsk"><img src="$!accountInfo.images[1]"/></em>
                            <div class="laybjsa">
                                 <a href="/user/index.jsp?accountid=$!accountInfo.accountid" class="layc">$!accountInfo.username</a>
                                 <p class="laydh">$!accountInfo.attentions 关注</p>
                                 <p class="scko">
                                 	<span>擅长：</span>
                                 	#foreach( $skill in $accountInfo.skills)
                                    <a href="#">$!skill</a>
                                    #end
                                 </p>
                            </div>
                       </div>
                       <p class="jlnew">作者其他文章</p>
                       #foreach( $article in $authorArticles)
                       <div class="newSay upx">
                             <a href="/topic/article.jsp?id=$!article.id" class="saySa">$article.title</a>
                             <p class="sayNum">$article.comments</p>
                       </div>
                       #end
                       <p class="h10"></p>
                          <p class="h10"></p>
                          <p class="newFshx">本文来自</p>
                          <div class="layaw">
                               <p class="addDra">
                                      <em class="yaps"><img src="$!subject.images[1]"/></em>
                                      <a href="#" class="guanz"><em class="addpsa"></em>关注</a>
                               </p>
                               <div class="layb">
                                    <a href="/topic/subject.jsp?subjectid=$!subject.id" class="layc">$!subject.title</a>
                                    <p class="laye">$!subject.description</p>
                               </div>
                          </div>
                          <p class="h10"></p>
                          <p class="newFshx">同主题站文章</p>
                          #foreach( $article in $subjectArticles)
                          <div class="newSay upx">
                                <a href="/topic/article.jsp?id=$!article.id" class="saySm">$article.title</a>
                                <p class="sayNum">$article.comments</p>
                                <p class="xgBs">作者：$article.username</p>
                          </div>
                          #end
                 </div>
            </div>
      </div>
      #parse("/inc/footer.html")
</body>
</html>
